//
//  ZBButton.h
//  ZBTechniqueLibrary
//
//  Created by apple on 2018/9/29.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ZBButtonType){
    ZBButtonType_None = 0, //系统自定义
    ZBButtonType_LeftImageRightText = 1, //左边图，右边文字
    ZBButtonType_LeftTextRightImage = 2, //左边文字，右边图片
    ZBButtonType_TopTextBottomImage = 3, //左边文字，右边图片
    ZBButtonType_TopImageBottomText= 4, //左边文字，右边图片
    
};

@interface ZBButton : UIButton

/**
  创建按钮
 */
+ (ZBButton *)zb_buttonWithType:(ZBButtonType)buttonType;

/**
 创建按钮
 */
+ (ZBButton *)zb_buttonWithType:(ZBButtonType)buttonType offset:(CGFloat)offset;

/**
 图片与文字的间距
 */
@property (nonatomic, assign) CGFloat  offset;

@end
